package com.twohand.admin.Service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.twohand.admin.Dto.*;
import com.twohand.admin.Entity.User;
import com.twohand.admin.Util.PageResponse;
import com.twohand.admin.Vo.UserListVo;
import org.springframework.web.multipart.MultipartFile;

import java.security.NoSuchAlgorithmException;
import java.util.List;

public interface UserService {
    PageResponse<UserListVo> getAllUser(UserListQueryDto userListQueryDto);
    User getUserById(Integer id);
    Boolean insertUser(AddUserDto addUserDto);
    Boolean updateUser(ModifyUserDto user);
    Boolean deleteUserById(Integer id);
    MiniLoginRes miniprogramLogin(String code) throws JsonProcessingException;

    Object adminLogin(String username,String password) throws NoSuchAlgorithmException;

    Object uploadAvatar(MultipartFile multipartFile);

    Boolean changPassword(ChangePwdDto changePwdDto);
    Boolean resetPwd(Integer id) throws NoSuchAlgorithmException;
}
